package com.flurry.sdk;

import com.flurry.sdk.lq;

public class je extends ky implements lq.a {
    /* access modifiers changed from: private */
    public static final String a = je.class.getSimpleName();
    private String f;
    private boolean g;

    public je() {
        this((byte) 0);
    }

    private je(byte b) {
        super("Analytics", je.class.getSimpleName());
        this.e = "AnalyticsData_";
        lp a2 = lp.a();
        this.g = ((Boolean) a2.a("UseHttps")).booleanValue();
        a2.a("UseHttps", (lq.a) this);
        km.a(4, a, "initSettings, UseHttps = " + this.g);
        String str = (String) a2.a("ReportUrl");
        a2.a("ReportUrl", (lq.a) this);
        b(str);
        km.a(4, a, "initSettings, ReportUrl = " + str);
        b();
    }

    public final void a(String str, Object obj) {
        char c = 65535;
        switch (str.hashCode()) {
            case -239660092:
                if (str.equals("UseHttps")) {
                    c = 0;
                    break;
                }
                break;
            case 1650629499:
                if (str.equals("ReportUrl")) {
                    c = 1;
                    break;
                }
                break;
        }
        switch (c) {
            case 0:
                this.g = ((Boolean) obj).booleanValue();
                km.a(4, a, "onSettingUpdate, UseHttps = " + this.g);
                return;
            case 1:
                String str2 = (String) obj;
                b(str2);
                km.a(4, a, "onSettingUpdate, ReportUrl = " + str2);
                return;
            default:
                km.a(6, a, "onSettingUpdate internal error!");
                return;
        }
    }

    private void b(String str) {
        if (str != null && !str.endsWith(".do")) {
            km.a(5, a, "overriding analytics agent report URL without an endpoint, are you sure?");
        }
        this.f = str;
    }

    /* access modifiers changed from: protected */
    public final void a(String str, String str2, final int i) {
        jy.a().b(new ma() {
            public final void a() {
                if (i == 200) {
                    hr.a();
                    jh b2 = hr.b();
                    if (b2 != null) {
                        b2.j = true;
                    }
                }
            }
        });
        super.a(str, str2, i);
    }

    /* JADX WARNING: type inference failed for: r6v0, types: [RequestObjectType, byte[]] */
    /* access modifiers changed from: protected */
    /* JADX WARNING: Unknown variable types count: 1 */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void a(byte[] r6, final String r7, final String r8) {
        /*
            r5 = this;
            java.lang.String r0 = r5.f
            if (r0 == 0) goto L_0x0062
            java.lang.String r0 = r5.f
        L_0x0006:
            r1 = 4
            java.lang.String r2 = a
            java.lang.StringBuilder r3 = new java.lang.StringBuilder
            java.lang.String r4 = "FlurryDataSender: start upload data "
            r3.<init>(r4)
            java.lang.String r4 = java.util.Arrays.toString(r6)
            java.lang.StringBuilder r3 = r3.append(r4)
            java.lang.String r4 = " with id = "
            java.lang.StringBuilder r3 = r3.append(r4)
            java.lang.StringBuilder r3 = r3.append(r7)
            java.lang.String r4 = " to "
            java.lang.StringBuilder r3 = r3.append(r4)
            java.lang.StringBuilder r3 = r3.append(r0)
            java.lang.String r3 = r3.toString()
            com.flurry.sdk.km.a((int) r1, (java.lang.String) r2, (java.lang.String) r3)
            com.flurry.sdk.ks r1 = new com.flurry.sdk.ks
            r1.<init>()
            r1.f = r0
            r0 = 100000(0x186a0, float:1.4013E-40)
            r1.w = r0
            com.flurry.sdk.ku$a r0 = com.flurry.sdk.ku.a.kPost
            r1.g = r0
            java.lang.String r0 = "Content-Type"
            java.lang.String r2 = "application/octet-stream"
            r1.a(r0, r2)
            com.flurry.sdk.lc r0 = new com.flurry.sdk.lc
            r0.<init>()
            r1.c = r0
            r1.b = r6
            com.flurry.sdk.je$1 r0 = new com.flurry.sdk.je$1
            r0.<init>(r7, r8)
            r1.a = r0
            com.flurry.sdk.jw r0 = com.flurry.sdk.jw.a()
            r0.a((java.lang.Object) r5, r1)
            return
        L_0x0062:
            boolean r0 = r5.g
            if (r0 == 0) goto L_0x0069
            java.lang.String r0 = "https://data.flurry.com/aap.do"
            goto L_0x0006
        L_0x0069:
            java.lang.String r0 = "http://data.flurry.com/aap.do"
            goto L_0x0006
        */
        throw new UnsupportedOperationException("Method not decompiled: com.flurry.sdk.je.a(byte[], java.lang.String, java.lang.String):void");
    }
}
